6.1 Introduction to Static Routing  
  6.1.2 Static route operation  
Static route operations can be divided into these three parts:
  • Network administrator configures the route
  • Router installs the route in the routing table
  • Packets are routed using the static route

Since a static route is manually configured, the administrator must configure the static route on the router using the ip route command. The correct syntax for the ip route command is shown in Figure .

In Figures and , the network administrator of the Hoboken router needs to configure a static route pointing to the 172.16.1.0/24 and 172.16.5.0/24 networks on the other routers. The administrator could enter either of two commands to accomplish this objective. The method in Figure specifies the outgoing interface. The method in Figure specifies the next-hop IP address of the adjacent router. Either of the commands will install a static route in the routing table of Hoboken. The only difference between the two is in the administrative distance assigned to the route by the router as it is placed in the routing table.

The administrative distance is an optional parameter that gives a measure of the reliability of the route. A lower value for the administrative distance indicates the more reliable route. Thus, a route with a lower administrative distance will be installed before an identical route with a higher administrative distance. The default administrative distance when using next-hop address is 1, while the default administrative distance when using the outgoing interface is 0. If an administrative distance other than the default is desired, a value between 0 and 255 is entered after the next-hop or outgoing interface as follows:

waycross(config)#ip route 172.16.3.0 255.255.255.0 172.16.4.1 130

If the router cannot reach the outgoing interface that is being used in the route, the route will not be installed in the routing table. This means if that interface is down, the route will not be placed in the routing table.

Sometimes static routes are used for backup purposes. A static route can be configured on a router that will only be used when the dynamically learned route has failed. To use a static route in this manner, simply set the administrative distance higher than that of the dynamic routing protocol being used.

 

Lab Activity

e-Lab Activity: Static Route Operation

In this lab, the student will learn how to create a static route.

 
 

Lab Activity

e-Lab Activity: Static Routes

In this lab, the students will practice using static routes by troubleshooting a network connected in the fashion outlined in the topology map.